package com.jstide.credit.data.service.biz;

import cn.hutool.db.Entity;
import com.jstide.credit.data.service.Algorithm;
import lombok.Getter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

public class Factor4 extends Algorithm {

    public static final Logger logger = LoggerFactory.getLogger(Factor4.class);

    @Getter
    public final  String name="4";

    //常住人口
    //判断是否属常住人口，满足则给分
    //130
    @Getter
    public  final String sql =" select count(1) as total from ZRRFBDHJCZBDRKXX where join_id=@joinId ";
    @Getter
    public final int defaultScore=130;

    @Override
    public int translate(String rs) {
        return 0;
    }

    @Override
    public int translate(List<Entity> rs) {
        return FactorHelper.translateTotal(name,defaultScore,rs);
    }
}
